package com.szy.repo;

import com.mysema.query.dml.DeleteClause;
import com.mysema.query.dml.UpdateClause;
import com.mysema.query.jpa.JPQLQuery;
import com.mysema.query.jpa.impl.JPADeleteClause;
import com.mysema.query.jpa.impl.JPAUpdateClause;
import com.mysema.query.types.EntityPath;
import org.springframework.data.jpa.repository.support.QueryDslRepositorySupport;

/**
 * Created by As on 2015/8/27.
 */
public abstract class AbstractQueryDSLRepo extends QueryDslRepositorySupport implements QueryDSLRepository {
    /**
     * Creates a new {@link QueryDslRepositorySupport} instance for the given domain type.
     *
     * @param domainClass must not be {@literal null}.
     */
    public AbstractQueryDSLRepo(Class<?> domainClass) {
        super(domainClass);
    }

    @Override
    public JPQLQuery from(EntityPath<?>... paths) {
        return super.from(paths);
    }

    @Override
    public UpdateClause<JPAUpdateClause> update(EntityPath<?> path) {
        return super.update(path);
    }

    @Override
    public DeleteClause<JPADeleteClause> delete(EntityPath<?> path) {
        return super.delete(path);
    }
}
